package com.s69.service;

import com.s69.entity.Hospital;
import com.s69.mapper.HospitalDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalService {
    @Autowired
    HospitalDao hospitalDao;

    public List<Hospital> queryAll() {
       return hospitalDao.queryAllBy(new Hospital());
    }
}
